﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class PayEmojiRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  52 ;

        public int EmojiNum { get; set; }              //表情编号
        public int Price { get; set; }                       //表情价格
        public int SendIndex { get; set; }              //发送表情的玩家座位
        public int ReceiveIndex { get; set; }          //接受表情的座位

        public void decode(Input _in)
        {
            EmojiNum = _in.readInt();
            Price = _in.readInt();
            SendIndex = _in.readInt();
            ReceiveIndex = _in.readInt();
        }

        public void encode(Output _out)
        {
           
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("emojiNum = {0}, price = {1}, sendIndex = {2},receiveIndex{3} ", EmojiNum, Price , SendIndex, ReceiveIndex);
        }
    }
}